package priv.yiyuan.example.composite.approvar1;

import priv.yiyuan.example.composite.approvar1.handler.ApprovalHandler;

/**
 * @author YiYuan
 * @data 2025/8/29
 * @apoNote
 */
public class ApprovalProcess {

    private ApprovalHandler startHandler;

    public ApprovalProcess(ApprovalHandler startHandler) {
        this.startHandler = startHandler;
    }

    public void startApproval(ApprovalRequest request) {
        System.out.println("\n--- 启动审批流程 ---");
        startHandler.handleRequest(request);
        System.out.println("\n--- 启动审批结束 ---");
    }
}
